import request from "@/utils/request";
// 首页数据
export const reqHomeData = (data) => {
    return request({
        url: `swap/home`,
        method: 'get',
        data
    })
}
// 兑换
export const reqConversion = (data) => {
    return request({
        url: `swap/exchange`,
        method: 'post',
        data
    })
}
// 兑换状态
export const reqConversionStatus=()=>{
    return request({
        url: `swap/exchange/status`,
        method: 'get',
    })
}
// 请求K线图
export const reqKlineCanvas=(cycleId)=>{
    return request({
        url: `swap/home/kline?cycleId=${cycleId}`,
        method: 'get',
    })
}
// 周期配置
export const reqPeriodConfig=()=>{
    return request({
        url: `swap/home/cycle`,
        method: 'get',
    })
}